package com.greenleaf.serviceImpl;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.greenleaf.dao.AddressDao;
import com.greenleaf.entity.Address;
import com.greenleaf.service.AddressService;

@Service("addressService")
public class AddressServiceImpl implements AddressService {
	@Resource
	private AddressDao addressDao;
	@Override
	public int insertAddress(Address address) {
		return addressDao.insertAddress(address);
	}
	@Override
	public List<Address> getAddress(int vId) {
		return addressDao.getAddress(vId);
	}
	@Override
	public Address getAddressById(Integer adsId) {
		return addressDao.getAddressById(adsId);
	}
	@Override
	public int getTotalAddress(int vId) {
		return addressDao.getTotalAddress(vId);
	}
	@Override
	public int delAddress(int adsId) {
		return addressDao.delAddress(adsId);
	}


}
